package org.dromara.system.domain.bo;

import cn.idev.excel.annotation.ExcelProperty;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.*;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.system.domain.SysUserPurse;
import org.dromara.system.domain.common.BasePageReqDTO;

import java.math.BigDecimal;

/**
 * 【请填写功能名称】业务对象 sys_user_purse
 *
 * @author Lion Li
 * @date 2025-07-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = SysUserPurse.class, reverseConvertGenerate = false)
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class SysUserPurseBo extends BasePageReqDTO {

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private Long userId;

    /**
     * 积分
     */
    @NotNull(message = "积分不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal points;

    /**
     * 待返积分
     */
    @NotNull(message = "待返积分不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal freezePoints;

    @ExcelProperty(value = "抽奖积分")
    private BigDecimal lotteryPoints;

    /**
     * 备注
     */
    private String remark;

    //交易sn备注
    private String tradingSnRemark;

    //交易金额备注
    private BigDecimal tradingAmountRemark;


    private Integer type;

    private String userName;

}
